* {
    margin: 0;
    padding: 0;
}

.w {
    width: 1200px;
    /* 主要用处左右居中对齐 */
    margin: auto;
    /* 版心(中间居中的那块大部分) */
}

body {
    background-color: #f3f5f7;
    /* 注意为了随时扩大，这里没有设置网页高度 */
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}


/* 清楚浮动代码开始 */

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}


/* 清楚浮动代码结束 */

.header {
    height: 42px;
    /* background-color: pink; */
    /* 注意此地方会层叠 w 里面的margin */
    margin: 30px auto;
}

.logo {
    float: left;
    width: 198px;
    height: 42px;
    /* background-color: purple; */
}

.nav {
    float: left;
    margin-left: 20px;
}

.nav ul li {
    float: left;
    margin: 0 15px;
}

.nav ul li a {
    display: block;
    height: 42px;
    padding: 0 10px;
    line-height: 42px;
    font-size: 18px;
    color: #050505;
}

.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff
}


/* search搜索模块 */

.search {
    float: left;
    width: 412px;
    height: 42px;
    background-color: skyblue;
    margin-left: 10px;
}

.search input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
    color: #bfbfbf;
    font-size: 14px;
    padding-left: 15px;
}

.search button {
    float: left;
    width: 50px;
    height: 42px;
    background-color: blue;
    /* 去掉button按钮默认边框 */
    border: 0;
    background-image: url(../images/btn.png);
}


/* banner区域 */

.banner {
    height: 421px;
    background-color: #1c036c;
}

.banner .w {
    height: 421px;
    background: url(../images/banner.png) no-repeat top center;
}

.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background: rgba(0, 0, 0, 0.3)
}

.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}

.subnav ul li a {
    font-size: 14px;
    color: #ffff;
}

.vertical:hover {
    width: 150px;
    height: 45px;
    background-color: rgba(139, 125, 216, 0.473);
}

.subnav ul li a span {
    float: right;
}

.course {
    float: right;
    width: 230px;
    height: 300px;
    background-color: rgb(228, 240, 255);
    margin-top: 50px;
}

.course h2 {
    height: 48px;
    background-color: #3b3f6b;
    /* 水平居中 */
    text-align: center;
    /* 上下居中 */
    line-height: 48px;
    font-size: 18px;
    color: #fff;
}

.bd {
    padding: 0 20px;
}

.bd ul li {
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
}

.bd ul li h4 {
    font-size: 16px;
    color: #414141;
}

.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}

.bd .more {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    margin-top: 5px;
    /* 水平居中 */
    text-align: center;
    /* 垂直居中 */
    line-height: 38px;
    color: #00a4ff;
    font-size: 16px;
    /* 字体加粗 */
    font-weight: 700px;
}

.more:hover {
    background-color: #5b9cff;
    color: #fff;
}

.goods {
    height: 60px;
    background-color: #ffff;
    margin-top: 10px;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.1);
    /* 别忘了父元素行高会继承给子代 */
    line-height: 60px;
}

.goods h3 {
    float: left;
    line-height: 60px;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff
}

.goods ul {
    float: left;
    margin-left: 30px;
}

.goods ul li {
    float: left;
}

.goods ul li a {
    padding: 0 30px;
    font-size: 16px;
    color: #050505;
    border-left: 1px solid #ccc;
}

.goods ul li:hover {
    border-bottom: 4px solid #00a4ff;
}

.mod {
    float: right;
    margin-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}

.box {
    margin-top: 30px;
}

.box-hd {
    height: 45px;
    line-height: 45px;
}

.box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
}

.box-hd a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-right: 30px;
}

.box-hd span {
    float: left;
    margin-left: 350px;
}

.box-hd span a {
    float: left;
    font-size: 16px;
    color: #a5a5a5;
    margin-left: 30px;
}


/* 把item的父亲items修改足够宽到装下五个盒子,这样就不会换行了 */

.items {
    width: 1225px;
    height: 270px;
    margin: 0 auto;
}

.item {
    width: 230px;
    height: 300px;
    text-align: center;
    margin-right: 15px;
    margin-bottom: 15px;
    background-color: #FFF;
    float: left;
    position: relative;
    overflow: hidden;
    transition: all .5s;
    box-shadow: #41a8ff 0px 4px 4px;
}

.item .p {
    background-color: #2A809D;
    height: 300px;
    background-image: linear-gradient( to bottom, #4b6db9 20%, #b2d3ff 80%);
    font-family: 'Microsoft Yahei';
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    padding-top: 40px;
    line-height: 30px;
}

.item .desc {
    position: absolute;
    bottom: -100px;
    width: 100%;
    height: 100px;
    background-color: #58A6F0;
    transition: all .5s;
    background-color: rgba(88, 166, 240, 0.8);
}

.item:hover {
    top: -5px;
    box-shadow: 0 0 15px #AAA;
}

.item:hover .desc {
    bottom: 0;
}

.item .desc .detail {
    font-weight: bold;
    font-size: 14px;
    margin-top: 40px;
}

.item .desc .detail i {
    color: red;
}


/* 图片效果代码结束 */

.start {
    margin-top: 60px;
    background-color: #00a4ff;
}

.pic1 {
    float: left;
    width: 230px;
    height: 430px;
    background-color: #ffff;
}

.pic1 img {
    width: 100%;
}

.one {
    float: right;
    width: 960px;
    height: 430px;
}

.pic2 {
    width: 960px;
    height: 100px;
    margin-bottom: 25px;
    background-color: #ffff;
}

.pic2 img {
    width: 100%;
}


/* footer模块制作 */

.footer {
    height: 300px;
    background-color: #ffff;
}

.footer .w {
    margin-top: 20px;
}

.copyright {
    float: left;
    margin-top: 35px;
}

.copyright p {
    font-size: 12px;
    color: #666666;
    margin: 20px 0 15px 0;
}

.copyright .user {
    display: block;
    width: 118px;
    height: 33px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 33px;
    color: #00a4ff;
    font-size: 16px;
}


/* 设置该按钮点击效果 */

.copyright .user:hover {
    background-color: blueviolet;
    color: #fff;
}

.links {
    float: right;
    margin-top: 35px;
}

.links dl {
    float: left;
    margin-left: 100px;
}

.links dl dt {
    font-size: 16px;
    color: #333333;
    margin-bottom: 5px;
}

.links dl dd a {
    font-size: 12px;
    color: #333333;
}